package priv.yiyuan.example.design.wrapper;

/**
 * 糖
 * <p>
 * 具体装饰器
 *
 * @author YiYuan
 * @data 2025/9/1
 * @apoNote
 */
public class SugarDecorator extends CondimentDecorator {

    public SugarDecorator(Coffee coffee) {
        super(coffee);
    }

    @Override
    public String getDescription() {
        return coffee.getDescription() + ", 加糖";
    }

    @Override
    public double getCost() {
        return coffee.getCost() + 1.0;
    }
}
